<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <a href="/javaee/images/1.jpg">图片1</a>
    <a href="/javaee/images/2.jpg">图片2

        <a href="/javaee/downloadServlet?filename=1.jpg">图片3</a>
        <a href="/javaee/downloadServlet?filename=2.jpg">图片4</a>
</body>
</html>